package cn.gson.work.model.service;

import cn.gson.work.model.mapper.HuiyisMapper;
import cn.gson.work.model.pojos.Huiyi;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HuiyisSrevice {
	@Autowired
	HuiyisMapper hym;
public List<Huiyi>findAll(){
	return hym.findAll();
}


/*高级查询*/
	public List<Huiyi> selectbh(String hbm4, String hzt, String sname5,Integer pageNum,Integer pageSize){
		PageHelper.startPage(pageNum, pageSize);
		List<Huiyi>list=hym.selectbh(hbm4,hzt,sname5);
		return list;

	}

	public void addAll(Huiyi huiyi){
		hym.addall(huiyi);
	}
}
